/*
 * @Author: 朽木白
 * @Date: 2023-02-06 11:02:58
 * @LastEditors: 1547702880@@qq.com
 * @LastEditTime: 2023-03-10 15:22:05
 * @Description: 用户store
 */
import { defineStore } from 'pinia'
import type { UserState } from './model/userModel'

export const useUserStore = defineStore({
  id: 'app-user',
  state: (): UserState => ({
    token: '',
  }),
  actions: {
    // setToken
    setToken(token: string) {
      this.token = token
    },
  },
})
